﻿namespace KAs.Common.Const;

public static class ConstConfig
{
    // 跨域策略
    public const string ANY_ALLOW = "any";

    // log模板配置
    public const string OUTPUT_TEMPLATE = "{Timestamp:yyyy-MM-dd HH:mm:ss.fff} <{ThreadId}> [{Level:u3}] {Message:lj}{NewLine}{Exception}";

    // 路由配置，不同业务类型的接口可以区分，如内部业务、开放接口等
    public const string API_ROUTE_CONFIG = "api/[controller]/[action]";

    // 实体字段类型等,防止不规范的写法出现
    public const string VARCHAR16 = "varchar(16)";
    public const string VARCHAR32 = "varchar(32)";
    public const string VARCHAR64 = "varchar(64)";
    public const string VARCHAR128 = "varchar(128)";
    public const string VARCHAR256 = "varchar(256)";
    public const string VARCHAR512 = "varchar(512)";
    public const string VARCHAR1024 = "varchar(1024)";
    public const string TEXT = "text";
    public const string MEDIUMTEXT = "mediumtext";
}